package com.bwie.auth.remote;

import com.bwie.auth.remote.impl.Fusing;
import com.bwie.common.domain.Admin;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "bwie-system",fallbackFactory = Fusing.class)
public interface AuthRemote {
    /**
     * 查询用户手机号
     * @param adminPhone
     * @return
     */
    @GetMapping("/user/findByAdminPhone")
    public Result<Admin> findByAdminPhone(@RequestParam String adminPhone);
}
